<template>
  <div>
    <van-nav-bar
      title="标题"
      left-text="返回"
      
      left-arrow
      @click-left="onClickLeft"
     
    />
    <van-tabbar v-model="active">
      <van-tabbar-item icon="home-o" to="/home">home</van-tabbar-item>
      <van-tabbar-item icon="search" to="/search">标签</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/cart">标签</van-tabbar-item>
      <van-tabbar-item icon="setting-o" to="/my">标签</van-tabbar-item>
    </van-tabbar>
    <router-view></router-view>
  </div>
</template>

<script>

export default {
  data() {
    return {
      active: 0,
    };
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1)
    }
  },
  
};
</script>

<style lang="scss" scoped></style>